<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="l-articles">
    <?php include template("content","left"); ?>
        <div class="l-right">
            <div class="partials--page-title">
                <div class="title">
                    <span class="zh"><?php echo $catname;?></span>
                    <span class="en"><?php echo $catdir;?></span>
                </div>
            </div>
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=57143c19cbcc86d2ab07b8be5a5da63a&action=lists&catid=%24catid&siteid=%24siteid&order=id+DESC&page=%24page&num=5&return=newsArr\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 5;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$newsArr = $content_tag->lists(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
            <ul class="articles">
            <?php $n=1;if(is_array($newsArr)) foreach($newsArr AS $news) { ?>
                <li class="item">
                    <a class="title" href="<?php echo $news['url'];?>" target="_blank"><?php echo $news['title'];?></a>
                    <span class="date"><?php echo date("Y-m-d",$news['inputtime']);?></span>
                    <p class="intro"><?php echo $news['description'];?></p>
                </li>
            <?php $n++;}unset($n); ?>
            </ul>
            <ul class="partials--pager"><?php echo $pages;?>
            <!-- <li class="item is-active"><a class="page" href="/articles/category-id/2/page/1" title="1">1</a></li><li class="item "><a class="page" href="/articles/category-id/2/page/2" title="2">2</a></li><li class="item next"><a class="page" href="/articles/category-id/2/page/2">下一页</a></li> -->
            </ul>
        </div>
    </div>
</div>
<?php include template("content","footer"); ?>